第7步:我们的返回变量保存函数内部计算的值,在这里就是霸王龙在月球上的重量。

  • 点击 ,将 Return Variable 拖动到函数外部。
  • 将变量名称更改为 dino_moon_weight
  • 将函数名称更改为 get_moon_weight
  • 13310 作为参数添加到函数调用中。提示:把它放在空的括号里。

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)